package com.chushouya.manager.dto.admin.attachment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("附件更新")
@Data
public class AttachmentUpdateDTO {

    @ApiModelProperty(value = "附件ID", required = true)
    @NotNull(message = "附件ID不能为空")
    private Long attachmentId;

    @ApiModelProperty("父级目录ID")
    private Long directoryId;

    @ApiModelProperty("祖级列表")
    private String ancestors;

    @ApiModelProperty(value = "附件名称", required = true)
    @NotBlank(message = "附件名称不能为空")
    private String attachmentName;

    @ApiModelProperty("宽高")
    private String widthHeight;

    @ApiModelProperty(value = "完整地址", required = true)
    @NotBlank(message = "文件地址不能为空")
    private String fillUrl;

    @ApiModelProperty("文件大小（KB）")
    private BigDecimal fileSize;

    @ApiModelProperty(value = "状态", required = true)
    @NotNull(message = "状态不能为空")
    private Byte status;

    @ApiModelProperty("操作人")
    private String handleUser;

    @ApiModelProperty("文件类型")
    private String mimeType;
}
